//
//  BaseNavigationController.m
//  Tour
//
//  Created by 张张烨 on 16/3/7.
//  Copyright © 2016年 张中烨. All rights reserved.
//

#import "BaseNavigationController.h"

@interface BaseNavigationController ()

@end

@implementation BaseNavigationController
//- (instancetype)initWithRootViewController:(UIViewController *)rootViewController
//{
//    self = [super initWithRootViewController:rootViewController];
//    if (self) {
////        self.extendedLayoutIncludesOpaqueBars = NO;
//        if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"Mode"] isEqualToString:@"night"]) {
////            [self.navigationBar setBackgroundImage:NAVBAR_IMAGE_NIGHT forBarMetrics:UIBarMetricsDefault];
//            
//        } else {
////            [self.navigationBar setBackgroundImage:NAVBAR_IMAGE_DAY forBarMetrics:UIBarMetricsDefault];
//        }
//        
////        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(changeColor:) name:@"changeColor" object:nil];
//    }
//    return self;
//}
//
//- (void)changeColor:(NSNotification *)notification{
//    
//    if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"Mode"] isEqualToString:@"night"]) {
//        [self.navigationBar setBackgroundImage:NAVBAR_IMAGE_NIGHT forBarMetrics:UIBarMetricsDefault];
//        
//    } else {
//        [self.navigationBar setBackgroundImage:NAVBAR_IMAGE_DAY forBarMetrics:UIBarMetricsDefault];
//    }
//}
//
//-(void)dealloc
//{
//    [[NSNotificationCenter defaultCenter] removeObserver:self name:@"changeColor1" object:nil];
// 
//}
//
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
   
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
